/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package nz.ac.massey.softwarec.group3.actions;
import javax.servlet.http.HttpSession;
import nz.ac.massey.softwarec.group3.game.Game;
import nz.ac.massey.softwarec.group3.game.Player;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
/**
*
* @author wanting
*/
public class ActionPerformerInterfaceTest {
public ActionPerformerInterfaceTest() {
}
HttpSession session;
@Before
public void setUp() {
}
@After
public void tearDown() {
}
/**
* Test of performAction method, of class ActionPerformerInterface.
*/
@Test
public void testPerformAction() {
System.out.println("performAction");
Player player=new Player(5,5,5,false);
Game game=new Game("username",001);
Action action=new Action(player,"action","value",game,session);
ActionPerformerInterface instance = new ActionPerformerInterfaceImpl();
instance.performAction(action);
}
public class ActionPerformerInterfaceImpl implements ActionPerformerInterface {
public void performAction(Action action) {
}
}
}